<?php

   class User extends Admin{
    	
		public function __construct(){
			parent::__construct();
			if(!$_SESSION['U']['adminid']){
				$this->showmessage("您还未登录","?m=Admin/Login" ,2000, "管理员登录");
			}else{
				$this->_T['U'] = $_SESSION['U'];
				$this->template();
			}
		}
		
		public function Index(){
			$this->mod = "UserList";
			$page = new Page(8,"select * from `ntwt_user`");
			$this->_T['PageList']['con']      = $page->content;
			$this->_T['PageList']['rowNum'] = $page->num;
			$this->_T['PageList']['pageOne']  = $page->first_page;
			$this->_T['PageList']['pageLast'] = $page->last_page;
			$this->_T['PageList']['pageVal']  = $page->pageval;
			$this->_T['PageList']['pagePre']  = $page->pageval-1;
			$this->_T['PageList']['pageNext'] = $page->pageval+1;
			$this->template("parent");
		}

   }




?>